<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "sample_alter".
 *
 * @property integer $pk_id
 * @property integer $from_id
 * @property string $use_name
 * @property integer $use_num
 * @property string $use_time
 * @property integer $origin_density
 * @property string $crt_time
 * @property string $crt_name
 */
class SampleAlter extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'sample_alter';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['from_id', 'use_name', 'use_num', 'use_time', 'origin_density', 'crt_time', 'crt_name'], 'required'],
            [['from_id'], 'integer'],
            [['origin_density', 'use_num'], 'number'],
            [['use_time', 'crt_time'], 'safe'],
            [['use_name', 'crt_name'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'pk_id' => 'Pk ID',
            'from_id' => 'From ID',
            'use_name' => '使用目的',
            'use_num' => '使用量(uL)',
            'use_time' => '使用时间',
            'origin_density' => '初始浓度(ng/nL)',
            'crt_time' => '创建时间',
            'crt_name' => '创建人',
        ];
    }
}
